// 对话框
<template>
  <div class="modal" @click.self="$emit('hidden')"><slot></slot></div>
</template>
<script>
export default {
  name: 'Modal'
}
</script>
<style lang="scss" scoped>
.modal {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
}
</style>
